import { IItemArray } from '@/components/SearchForm'
export const useFormEdit = (): IItemArray[] => {
  return [
    {
      name: 'id',
      label: '产品id',
      type: 'Input',
      config: {
        disabled: true,
      },
    },
    {
      name: 'materials',
      label: '产品名称',
      type: 'Input',
      placeholder: '请输入产品名称',
      rules: [{ required: true, message: '请输入产品名称' }],
    },
    {
      name: '1',
      label: '产品型号',
      type: 'Input',
      placeholder: '请输入产品型号',
      rules: [{ required: true, message: '请输入产品型号' }],
    },
    {
      name: '2',
      label: '厂商',
      type: 'Input',
      placeholder: '请输入厂商',
      rules: [{ required: true, message: '请输入厂商' }],
    },
    {
      name: 'category',
      label: '产品类型',
      type: 'Select',
      placeholder: '请选择产品类型',
      rules: [
        {
          required: true,
          message: '请选择产品类型',
        },
      ],
    },
    {
      name: 'cover_img',
      label: '产品图片',
      config: { max: 1 },
      type: 'Upload',
    },
    {
      name: 'desc',
      label: '激活方式',
      type: 'TextArea',
      config: { rows: 4, showCount: true, maxLength: 30 },
      placeholder: '请输入激活方式',
    },
    {
      name: 'desc1',
      label: '对接方式',
      type: 'TextArea',
      config: { rows: 4, showCount: true, maxLength: 30 },
      placeholder: '请输入对接方式',
    },
  ]
}
